package com.lzj.admin.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 客户表
 * </p>
 *
 * @author luoyoumou
 * @date 2022-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_customer")
@ApiModel(value="Customer对象", description="客户信息表")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "联系电话")
    private String number;

    @ApiModelProperty(value = "客户名称")
    private String name;

    @ApiModelProperty(value = "客户名称-拼音首字母")
    private String fpyName;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "小区id")
    private Integer areaId;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "是否拉黑")
    private String isBlack;

    @ApiModelProperty(value = "注册日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date registerDate;

    @ApiModelProperty(value = "最后交易日期") // 即：客户最后一张 销售单或退货单 产生的日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.util.Date lastTradeDate;

    @ApiModelProperty(value = "小区名称")
    @TableField(exist = false)
    private String areaName;// 小区名称

}
